package com.ddwl.common.constant;

/**
 * @author Fu Zhaohui
 * @date 14-12-17
 */
public interface Constant {


    /**
     * 平台（2商城 1分销商城）
     */
    Integer PLATFORM_MALL = 2;
    /**
     * 佣金方式（0价格百分比 1固定金额）
     */
    Integer PROFIT_BF = 0;

    Integer PROFIT_GD = 1;


    String DEFAULT_SEPARATOR = ",";

    String HAVE_DELETED = "已删除";

    String CLOSE_EXPIRATION_MSG = "订单超时关闭";



    Integer Area = 2;


    String PROFILE_PROD = "prod";


    /**
     * AccessToken认证 一个星期后失效
     */
    int ACCESS_TOKEN_EXPIRE = 7;

    String WECHAT_TEMPLATE_URL = "https://api.weixin.qq.com/cgi-bin/message/template/send?access_token={token}";
    String WECHAT_USER_OPENID_URL = "https://api.weixin.qq.com/cgi-bin/user/get?access_token={token}&next_openid={next_openid}";
    String WECHAT_USERINFO_BATCH_URL = "https://api.weixin.qq.com/cgi-bin/user/info/batchget?access_token={token}";
    String WECHAT_USERINFO_URL = "https://api.weixin.qq.com/cgi-bin/user/info?access_token={token}&openid={openId}&lang=zh_CN";


    String WECHAT_PRE_AUTH_URL = "https://api.weixin.qq.com/cgi-bin/component/api_create_preauthcode?component_access_token={token}";
    String WECHAT_AUTH_QUERY_URL = "https://api.weixin.qq.com/cgi-bin/component/api_query_auth?component_access_token={token}";
    String WECHAT_AUTH_INFO_QUERY_URL = "https://api.weixin.qq.com/cgi-bin/component/api_get_authorizer_info?component_access_token={token}";


    /**
     * 微信小程序二维码
     */
    String WECHAT_UNLIMIT_APP_CODE = "https://api.weixin.qq.com/wxa/getwxacodeunlimit?access_token={token}";


    /**
     * 字节跳动获取session
     */
    String BYTE_DANCE_SESSION = "https://developer.toutiao.com/api/apps/jscode2session?appid={appid}&secret={secret}&code={code}";

    /**
     * 字节跳动获取二维码
     */
    String BYTE_DANCE_QRCODE = "https://developer.toutiao.com/api/apps/qrcode";

    /**
     * 字节跳动下单
     */
    String BYTE_DANCE_CREATE_ORDER = "https://developer.toutiao.com/api/apps/ecpay/v1/create_order";

    /**
     * 字节跳动查询订单
     */
    String BYTE_DANCE_QUERY_ORDER = "https://developer.toutiao.com/api/apps/ecpay/v1/query_order";

    /**
     * 字节跳动创建退款单
     */
    String BYTE_DANCE_CREATE_REFUND = "https://developer.toutiao.com/api/apps/ecpay/v1/create_refund";

    /**
     * 字节跳动查询退款单
     */
    String BYTE_DANCE_QUERY_REFUND = "https://developer.toutiao.com/api/apps/ecpay/v1/query_refund";

    /**
     * 快递100实时查询
     */
    String KUAI_DI_100_QUERY = "https://poll.kuaidi100.com/poll/query.do";
}
